package com.service.business.member.controller.req;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class MemberAddressCreateReq {

    @NotBlank(message = "args_empty_consignee_name")
    @Size(min = 1, max = 50, message = "args_size_out_of_consignee_name")
    private String consigneeName;

    @NotBlank(message = "args_empty_consignee_mobile")
    @Size(min = 1, max = 20, message = "args_size_out_of_consignee_mobile")
    private String consigneeMobile;

    @NotBlank(message = "args_empty_area_code")
    @Size(min = 1, max = 10, message = "args_size_out_of_area_code")
    private String areaCode;

    @NotBlank(message = "args_empty_province")
    @Size(min = 1, max = 200, message = "args_size_out_of_province")
    private String province;

    @NotBlank(message = "args_empty_city")
    @Size(min = 1, max = 200, message = "args_size_out_of_city")
    private String city;

    @NotBlank(message = "args_empty_country")
    @Size(min = 1, max = 200, message = "args_size_out_of_country")
    private String county;

    @NotBlank(message = "args_empty_address")
    @Size(min = 1, max = 200, message = "args_size_out_of_address")
    private String address;

    @Size( max = 20, message = "args_size_out_of_postcode")
    private String postcode;

    @NotNull(message = "args_empty_default_address")
    @Min(value = 0, message = "args_value_range_default_address")
    @Max(value = 2, message = "args_value_range_default_address")
    private Integer defaultUse;

}
